package com.zw.cc;

import com.htsec.conditioncal.redis.ShardedJedisSentinelTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication(scanBasePackages = "com.zw.cc")
@Controller
public class Application {

    @Autowired
    ShardedJedisSentinelTemplate shardedJedisSentinelTemplate;

    @RequestMapping("/home")
    @ResponseBody
    public String home(){
        return "this is home";
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
